<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <style>
        ul li {
            list-style: none;
        }
        * {
            margin: 0;
            padding: 0;
        }
        .top{
            overflow: auto;
        }
        .top li:hover{
            cursor: pointer;
        }
        .top li{
            float: left;
            height: 40px;
            width: 120px;
            margin-right: 5px;
            line-height: 40px;
            text-align: center;
            background-color: #409eff;
            color: #fff;
            font-size: 15px;
            box-sizing: border-box;
            border: 1px solid #409eff;
        }
        .captcha-iframe {
            width: 300px;
            height: 320px;
            border: none;
        }
        .after {
            color: #88949d;
        }
    </style>
</head>

<body>
<div>
    <ul class="top">
        <li onclick="toggle('/slider')">滑块验证码</li>
        <li onclick="toggle('/rotate')">旋转验证码</li>
        <li onclick="toggle('/concat')">滑动还原验证码</li>
        <li onclick="toggle('/word-click')">点选验证码</li>
        <li onclick="toggle('/interPage')">点选测试多语言</li>
    </ul>
    <iframe id="captcha-iframe" class="captcha-iframe" src="/slider"></iframe>
    <div class="container">
        <form class="form-horizontal">
            <a type="submit" class="btn btn-success" th:href="@{/inter/login(i18n_language=zh_CN)}">中文</a>
            <a type="submit" class="btn btn-info" th:href="@{/inter/login(i18n_language=en_US)}">English</a>
        </form>
    </div>
</div>
<script>
    function toggle(url) {
        $("#captcha-iframe").attr("src", url);
    }
</script>
</body>
</html>
